#include "BufferOutput.h"
#include "BufferInput.h"
#include "support.h"

BufferOutput::BufferOutput(BufferInput &src, cv::Mat defaultValue) : Filter(0, 1), src(&src)
{
	buffer = defaultValue;
}


BufferOutput::~BufferOutput(void)
{
}

void BufferOutput::Process()
{
	outputs[0] = buffer.clone();
	//printMat(buffer);
	if (!src->buffer.empty())
		buffer = src->buffer.clone();
	//printMat(buffer);
}
